<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="pojo.*,dao.CartDao,service.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id="cb" class="dao.CartDao"></jsp:useBean>
<%
//c_name-用户账号，p_id商品编号 p_name商品名称，p_image商品图片，价格
Customer cu=(Customer)(session.getAttribute("c"));
CartService cservice = new CartService();
	if(cu==null){
		response.sendRedirect("login.jsp");
}else{
	response.sendRedirect("http://localhost:8080/login/CartServlet?method=add");
}
%>
</body>
</html>